package com.zys.el.time;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@EnableDiscoveryClient
@EnableFeignClients
@EnableCircuitBreaker
@SpringBootApplication
@EnableScheduling
@MapperScans({@MapperScan("com.zys.el.time.mapper"),
        @MapperScan("com.zys.el.time.ws.mapper"),
        @MapperScan("com.zys.el.time.advice.mapper")})
public class ChannelServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ChannelServerApplication.class, args);
    }
}
